package com;

public class Ex1 {
    public static void main(String[] args) {
        a(1);
    }

    static void a(int i){
        System.out.printf(i+" ");
        if(i==10) {
            return;
        }
        a(++i);
    }
}
